<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/header::common-head">
    <!--<#include "../common/header.html">-->
</head>
<body>
<!--边栏-->
<!--<#include "../common/nav.html">-->
<div th:replace="admin/common/nav::common-nav" ></div>
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.0.1/js/bootstrap.min.js"></script>

<div class="content-wrapper" style="width: auto">
    <div class="container">
        <div class="row clearfix">
            <div class="col-md-12 column">
                <form role="form" action="/fashionpress/admin/update" enctype="multipart/form-data" method="post">
                    <div class="form-group" th:if="${formAdmin!=null}">
                        <label for="adminId">管理员编号:</label><input type="text" name="adminId" id="adminId" size="50" placeholder="50字以内" th:value="${formAdmin!=null?formAdmin.adminId:''}" readonly="readonly" style="border: 0">
                    </div>
                    <div class="form-group">
                        <label for="adminUsername">管理员用户名</label><input type="text" class="form-control" id="adminUsername" name="adminUsername" th:value="${formAdmin!=null?formAdmin.adminUsername:''}"/>
                    </div>
                    <div class="form-group" th:if="${formAdmin==null}">
                        <label for="adminPassword">管理员密码</label><input type="text" class="form-control" id="adminPassword" name="adminPassword"/>
                    </div>
                    <div class="form-group" th:if="${formAdmin!=null}">
                        <label for="adminPassword1"></label><input type="hidden" class="form-control" id="adminPassword1" name="adminPassword" th:value="${formAdmin!=null?formAdmin.adminPassword:''}"/>
                    </div>
                    <div class="form-group">
                        <label for="adminPhone">手机号码</label><input type="tel" class="form-control" id="adminPhone" name="adminPhone" th:value="${formAdmin!=null?formAdmin.adminPhone:''}" />
                    </div>
                    <div class="form-group" th:if="${formAdmin==null} or ${formAdmin.nickName!='超级管理员'}">
                        <label for="productStatus0">管理员状态</label>
                        <label><input type="radio" name="adminStatus" value="0" id="productStatus0" />禁止</label>
                        <lable><input type="radio" name="adminStatus" value="1" id="productStatus1" />任用</lable>
                    </div>
                    <div class="form-group" th:if="${formAdmin!=null}and${formAdmin.nickName=='超级管理员'}">
                        <label><input type="hidden" name="adminStatus" value="1"  /></label>
                    </div>
                    <div class="form-group">
                        <label for="nickId">角色</label>
                        <ul>
                        <select id="nickId" name="nickId" class="form-control" >
                            <option th:each="nick:${nickList}" th:value="${nick.nickId}" th:text="${nick.nickName}"></option>
                        </select>
                        </ul>
                    </div >
                    <div class="checkbox">
                    </div> <button type="submit" class="btn btn-default">提交</button>
                </form>
            </div>
        </div>
    </div>


    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>


</div>
<div th:replace="admin/common/footer::common-footer"></div>
</body>
</html>